#!/bin/env python 
#_*_ coding:utf-8 _*_

class Foo(object):
	"""docstring for Foo"""
	def __getitem__(self, key):
		print  '__getitem__',key
	def __setitem__(self, key, value):
		print '__getitem__',key,value
	def __delitem__(self,key):
		print '__delitem__',key


test = Foo()
test['name']
test['age'] = 28
del test['name']